KoLocalFunctionProvider

An interface representing a Kotlin declaration that provides information about local functions.

Inheritors

Properties

Link copied to clipboard

The local functions present in the declaration.

Link copied to clipboard
abstract val numLocalFunctions: Int

The number of local functions.

Functions

Link copied to clipboard
abstract fun countLocalFunctions(predicate: (KoFunctionDeclaration) -> Boolean): Int

Returns the number of local functions that satisfies the specified predicate present in the declaration.

Link copied to clipboard

Determines whether the declaration has all local functions that satisfy the provided predicate.

Link copied to clipboard
abstract fun hasLocalFunction(predicate: (KoFunctionDeclaration) -> Boolean): Boolean

Determines whether the declaration has at least one local function that satisfies the provided predicate.

Link copied to clipboard
abstract fun hasLocalFunctions(): Boolean

Determines whatever the declaration has local functions.

Link copied to clipboard
abstract fun hasLocalFunctionsWithAllNames(name: String, vararg names: String): Boolean

Determines whether the declaration has local functions with all the specified names.

Link copied to clipboard
abstract fun hasLocalFunctionWithName(name: String, vararg names: String): Boolean

Determines whether the declaration has at least one local function whose name matches any of the specified names.